import { getAnnouncement } from '@/services/zhirong/dataIntegration';
import ProTable from '@ant-design/pro-table';

const AnnouncementList = ({ cate }) => {
  return (
    <>
      <ProTable
        params={{ cate }}
        columns={[
          {
            dataIndex: 'name',
            title: '公司',
            width: 80,
          },
          {
            dataIndex: 'code',
            title: '股票代码',
            width: 60,
          },
          {
            dataIndex: 'title',
            title: '标题',
            ellipsis: 'true',
            width: 220,
          },
          {
            dataIndex: 'date',
            title: '日期',
            ellipsis: 'true',
            width: 100,
          },
        ]}
        request={getAnnouncement}
        rowKey="outUserNo"
        pagination={{
          showQuickJumper: true,
          defaultPageSize: 15,
        }}
        toolBarRender={false}
        search={false}
      />
    </>
  );
};

export default AnnouncementList;
